// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_hm_domains
// * CreateDate    : 2014-06-05 18:29:56
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:56
// * LastChanger   : 2014-06-05 18:29:56
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class HmDomainsEntity : EntityBase
    {
        public HmDomainsTable TableSchema
        {
            get
            {
                return HmDomainsTable.Current;
            }
		}
		
		public HmDomainsEntity()
        {

        }
		
		public HmDomainsEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Domainid = Convert.ToInt32(CommonFunctions.ToObject(dr["domainid"]));
			this.Domainname = Convert.ToString(CommonFunctions.ToObject(dr["domainname"]));
			this.Domainactive = Convert.ToByte(CommonFunctions.ToObject(dr["domainactive"]));
			this.Domainpostmaster = Convert.ToString(CommonFunctions.ToObject(dr["domainpostmaster"]));
			this.Domainmaxsize = Convert.ToInt32(CommonFunctions.ToObject(dr["domainmaxsize"]));
			this.Domainaddomain = Convert.ToString(CommonFunctions.ToObject(dr["domainaddomain"]));
			this.Domainmaxmessagesize = Convert.ToInt32(CommonFunctions.ToObject(dr["domainmaxmessagesize"]));
			this.Domainuseplusaddressing = Convert.ToByte(CommonFunctions.ToObject(dr["domainuseplusaddressing"]));
			this.Domainplusaddressingchar = Convert.ToString(CommonFunctions.ToObject(dr["domainplusaddressingchar"]));
			this.Domainantispamoptions = Convert.ToInt32(CommonFunctions.ToObject(dr["domainantispamoptions"]));
			this.Domainenablesignature = Convert.ToByte(CommonFunctions.ToObject(dr["domainenablesignature"]));
			this.Domainsignaturemethod = Convert.ToByte(CommonFunctions.ToObject(dr["domainsignaturemethod"]));
			this.Domainsignatureplaintext = Convert.ToString(CommonFunctions.ToObject(dr["domainsignatureplaintext"]));
			this.Domainsignaturehtml = Convert.ToString(CommonFunctions.ToObject(dr["domainsignaturehtml"]));
			this.Domainaddsignaturestoreplies = Convert.ToByte(CommonFunctions.ToObject(dr["domainaddsignaturestoreplies"]));
			this.Domainaddsignaturestolocalemail = Convert.ToByte(CommonFunctions.ToObject(dr["domainaddsignaturestolocalemail"]));
			this.Domainmaxnoofaccounts = Convert.ToInt32(CommonFunctions.ToObject(dr["domainmaxnoofaccounts"]));
			this.Domainmaxnoofaliases = Convert.ToInt32(CommonFunctions.ToObject(dr["domainmaxnoofaliases"]));
			this.Domainmaxnoofdistributionlists = Convert.ToInt32(CommonFunctions.ToObject(dr["domainmaxnoofdistributionlists"]));
			this.Domainlimitationsenabled = Convert.ToInt32(CommonFunctions.ToObject(dr["domainlimitationsenabled"]));
			this.Domainmaxaccountsize = Convert.ToInt32(CommonFunctions.ToObject(dr["domainmaxaccountsize"]));
			this.Domaindkimselector = Convert.ToString(CommonFunctions.ToObject(dr["domaindkimselector"]));
			this.Domaindkimprivatekeyfile = Convert.ToString(CommonFunctions.ToObject(dr["domaindkimprivatekeyfile"]));
        }
		
		public HmDomainsEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Domainid = Convert.ToInt32(CommonFunctions.ToObject(dr["domainid"]));
			this.Domainname = Convert.ToString(CommonFunctions.ToObject(dr["domainname"]));
			this.Domainactive = Convert.ToByte(CommonFunctions.ToObject(dr["domainactive"]));
			this.Domainpostmaster = Convert.ToString(CommonFunctions.ToObject(dr["domainpostmaster"]));
			this.Domainmaxsize = Convert.ToInt32(CommonFunctions.ToObject(dr["domainmaxsize"]));
			this.Domainaddomain = Convert.ToString(CommonFunctions.ToObject(dr["domainaddomain"]));
			this.Domainmaxmessagesize = Convert.ToInt32(CommonFunctions.ToObject(dr["domainmaxmessagesize"]));
			this.Domainuseplusaddressing = Convert.ToByte(CommonFunctions.ToObject(dr["domainuseplusaddressing"]));
			this.Domainplusaddressingchar = Convert.ToString(CommonFunctions.ToObject(dr["domainplusaddressingchar"]));
			this.Domainantispamoptions = Convert.ToInt32(CommonFunctions.ToObject(dr["domainantispamoptions"]));
			this.Domainenablesignature = Convert.ToByte(CommonFunctions.ToObject(dr["domainenablesignature"]));
			this.Domainsignaturemethod = Convert.ToByte(CommonFunctions.ToObject(dr["domainsignaturemethod"]));
			this.Domainsignatureplaintext = Convert.ToString(CommonFunctions.ToObject(dr["domainsignatureplaintext"]));
			this.Domainsignaturehtml = Convert.ToString(CommonFunctions.ToObject(dr["domainsignaturehtml"]));
			this.Domainaddsignaturestoreplies = Convert.ToByte(CommonFunctions.ToObject(dr["domainaddsignaturestoreplies"]));
			this.Domainaddsignaturestolocalemail = Convert.ToByte(CommonFunctions.ToObject(dr["domainaddsignaturestolocalemail"]));
			this.Domainmaxnoofaccounts = Convert.ToInt32(CommonFunctions.ToObject(dr["domainmaxnoofaccounts"]));
			this.Domainmaxnoofaliases = Convert.ToInt32(CommonFunctions.ToObject(dr["domainmaxnoofaliases"]));
			this.Domainmaxnoofdistributionlists = Convert.ToInt32(CommonFunctions.ToObject(dr["domainmaxnoofdistributionlists"]));
			this.Domainlimitationsenabled = Convert.ToInt32(CommonFunctions.ToObject(dr["domainlimitationsenabled"]));
			this.Domainmaxaccountsize = Convert.ToInt32(CommonFunctions.ToObject(dr["domainmaxaccountsize"]));
			this.Domaindkimselector = Convert.ToString(CommonFunctions.ToObject(dr["domaindkimselector"]));
			this.Domaindkimprivatekeyfile = Convert.ToString(CommonFunctions.ToObject(dr["domaindkimprivatekeyfile"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HmDomainsTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public int Domainid
        {
            get { return Convert.ToInt32(GetData(HmDomainsTable.C_domainid)); }
            set { SetData(HmDomainsTable.C_domainid, value); }
        }
		
        [DataMember]
        public string Domainname
        {
            get { return Convert.ToString(GetData(HmDomainsTable.C_domainname)); }
            set { SetData(HmDomainsTable.C_domainname, value); }
        }
		
        [DataMember]
        public byte Domainactive
        {
            get { return Convert.ToByte(GetData(HmDomainsTable.C_domainactive)); }
            set { SetData(HmDomainsTable.C_domainactive, value); }
        }
		
        [DataMember]
        public string Domainpostmaster
        {
            get { return Convert.ToString(GetData(HmDomainsTable.C_domainpostmaster)); }
            set { SetData(HmDomainsTable.C_domainpostmaster, value); }
        }
		
        [DataMember]
        public int Domainmaxsize
        {
            get { return Convert.ToInt32(GetData(HmDomainsTable.C_domainmaxsize)); }
            set { SetData(HmDomainsTable.C_domainmaxsize, value); }
        }
		
        [DataMember]
        public string Domainaddomain
        {
            get { return Convert.ToString(GetData(HmDomainsTable.C_domainaddomain)); }
            set { SetData(HmDomainsTable.C_domainaddomain, value); }
        }
		
        [DataMember]
        public int Domainmaxmessagesize
        {
            get { return Convert.ToInt32(GetData(HmDomainsTable.C_domainmaxmessagesize)); }
            set { SetData(HmDomainsTable.C_domainmaxmessagesize, value); }
        }
		
        [DataMember]
        public byte Domainuseplusaddressing
        {
            get { return Convert.ToByte(GetData(HmDomainsTable.C_domainuseplusaddressing)); }
            set { SetData(HmDomainsTable.C_domainuseplusaddressing, value); }
        }
		
        [DataMember]
        public string Domainplusaddressingchar
        {
            get { return Convert.ToString(GetData(HmDomainsTable.C_domainplusaddressingchar)); }
            set { SetData(HmDomainsTable.C_domainplusaddressingchar, value); }
        }
		
        [DataMember]
        public int Domainantispamoptions
        {
            get { return Convert.ToInt32(GetData(HmDomainsTable.C_domainantispamoptions)); }
            set { SetData(HmDomainsTable.C_domainantispamoptions, value); }
        }
		
        [DataMember]
        public byte Domainenablesignature
        {
            get { return Convert.ToByte(GetData(HmDomainsTable.C_domainenablesignature)); }
            set { SetData(HmDomainsTable.C_domainenablesignature, value); }
        }
		
        [DataMember]
        public byte Domainsignaturemethod
        {
            get { return Convert.ToByte(GetData(HmDomainsTable.C_domainsignaturemethod)); }
            set { SetData(HmDomainsTable.C_domainsignaturemethod, value); }
        }
		
        [DataMember]
        public string Domainsignatureplaintext
        {
            get { return Convert.ToString(GetData(HmDomainsTable.C_domainsignatureplaintext)); }
            set { SetData(HmDomainsTable.C_domainsignatureplaintext, value); }
        }
		
        [DataMember]
        public string Domainsignaturehtml
        {
            get { return Convert.ToString(GetData(HmDomainsTable.C_domainsignaturehtml)); }
            set { SetData(HmDomainsTable.C_domainsignaturehtml, value); }
        }
		
        [DataMember]
        public byte Domainaddsignaturestoreplies
        {
            get { return Convert.ToByte(GetData(HmDomainsTable.C_domainaddsignaturestoreplies)); }
            set { SetData(HmDomainsTable.C_domainaddsignaturestoreplies, value); }
        }
		
        [DataMember]
        public byte Domainaddsignaturestolocalemail
        {
            get { return Convert.ToByte(GetData(HmDomainsTable.C_domainaddsignaturestolocalemail)); }
            set { SetData(HmDomainsTable.C_domainaddsignaturestolocalemail, value); }
        }
		
        [DataMember]
        public int Domainmaxnoofaccounts
        {
            get { return Convert.ToInt32(GetData(HmDomainsTable.C_domainmaxnoofaccounts)); }
            set { SetData(HmDomainsTable.C_domainmaxnoofaccounts, value); }
        }
		
        [DataMember]
        public int Domainmaxnoofaliases
        {
            get { return Convert.ToInt32(GetData(HmDomainsTable.C_domainmaxnoofaliases)); }
            set { SetData(HmDomainsTable.C_domainmaxnoofaliases, value); }
        }
		
        [DataMember]
        public int Domainmaxnoofdistributionlists
        {
            get { return Convert.ToInt32(GetData(HmDomainsTable.C_domainmaxnoofdistributionlists)); }
            set { SetData(HmDomainsTable.C_domainmaxnoofdistributionlists, value); }
        }
		
        [DataMember]
        public int Domainlimitationsenabled
        {
            get { return Convert.ToInt32(GetData(HmDomainsTable.C_domainlimitationsenabled)); }
            set { SetData(HmDomainsTable.C_domainlimitationsenabled, value); }
        }
		
        [DataMember]
        public int Domainmaxaccountsize
        {
            get { return Convert.ToInt32(GetData(HmDomainsTable.C_domainmaxaccountsize)); }
            set { SetData(HmDomainsTable.C_domainmaxaccountsize, value); }
        }
		
        [DataMember]
        public string Domaindkimselector
        {
            get { return Convert.ToString(GetData(HmDomainsTable.C_domaindkimselector)); }
            set { SetData(HmDomainsTable.C_domaindkimselector, value); }
        }
		
        [DataMember]
        public string Domaindkimprivatekeyfile
        {
            get { return Convert.ToString(GetData(HmDomainsTable.C_domaindkimprivatekeyfile)); }
            set { SetData(HmDomainsTable.C_domaindkimprivatekeyfile, value); }
        }
		
		#endregion
	}
	
	
}	

